package com.qfedu.common.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.util.Date;

/**
 * @Classname User
 * @Description TODO
 * @Date 2025-09-22 15:56
 * @Created by 老任与码
 */
@TableName("user")
@Data
public class User {
    // 自增
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String username;
    private String password;
    private String avatar;
    private String phone;
    private String email;
    private String gender;
    private Date birth;
    @TableField(exist = false)
    private String inviteCode;
    @TableField(exist = false)
    private Integer pid;
    @TableField(exist = false)
    private Integer point;
    @TableField(exist = false)
    private String qrcodeUrl;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
}
